package com.vanysoft.business.kpi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vanysoft.framework.config.orm.BaseEntity;

import java.time.LocalDateTime;

/**
 * KPI考核项规则设定表
 *
 * @author yu_chen
 * @date 2018-07-09 14:22
 **/
@TableName("kpi_item_rule")
public class KpiItemRule extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 所属考核域
     */
    @Excel(name = "Family", fixedIndex = 0)
    @TableField(exist = false)
    private String family;

    /**
     * kpi基本信息表的NO
     */
    @Excel(name = "KPI NO.", fixedIndex = 1)
    @TableField("kpi_item_id")
    private String kpiItemId;
    /**
     * kpi条目名称
     */
    @Excel(name = "KPI Item", fixedIndex = 2)
    @TableField(exist = false)
    private String kpiItemName;
    /**
     * kpi描述
     */
    @Excel(name = "KPI Des.", fixedIndex = 3)
    @TableField(exist = false)
    private String kpiDes;

    /**
     * 规则的范围
     */
    @Excel(name = "Rule Scope", fixedIndex = 4)
    @TableField("rule_scope")
    private String ruleScope;
    /**
     * 权重
     */
    @Excel(name = "Weight", fixedIndex = 5, suffix = "%")
    @TableField("weight")
    private Double weight;
    /**
     * 类型
     */
    @Excel(name = "Type", fixedIndex = 6, replace = {"百分比型_percent", "Y/N型_y/n", "数值型_number", "直接打分型_onlyScore"})
    @TableField("item_type")
    private String itemType;
    /**
     * 类型
     */
    @Excel(name = "Role Chosen", fixedIndex = 7)
    @TableField("role_chosen")
    private String roleChosen;
    /**
     * 得分为10分的情况
     */
    @Excel(name = "10", fixedIndex = 8)
    @TableField("value_10")
    private String value10;
    /**
     * 得分为9分的情况
     */
    @Excel(name = "9", fixedIndex = 9)
    @TableField("value_9")
    private String value9;
    /**
     * 得分为8分的情况
     */
    @Excel(name = "8", fixedIndex = 10)
    @TableField("value_8")
    private String value8;
    /**
     * 得分为7分的情况
     */
    @Excel(name = "7", fixedIndex = 11)
    @TableField("value_7")
    private String value7;
    /**
     * 得分为6分的情况
     */
    @Excel(name = "6", fixedIndex = 12)
    @TableField("value_6")
    private String value6;
    /**
     * 得分为5分的情况
     */
    @Excel(name = "5", fixedIndex = 13)
    @TableField("value_5")
    private String value5;
    /**
     * 得分为4分的情况
     */
    @Excel(name = "4", fixedIndex = 14)
    @TableField("value_4")
    private String value4;
    /**
     * 得分为3分的情况
     */
    @Excel(name = "3", fixedIndex = 15)
    @TableField("value_3")
    private String value3;
    /**
     * 得分为2分的情况
     */
    @Excel(name = "2", fixedIndex = 16)
    @TableField("value_2")
    private String value2;
    /**
     * 得分为1分的情况
     */
    @Excel(name = "1", fixedIndex = 17)
    @TableField("value_1")
    private String value1;
    /**
     * 得分为0分的情况
     */
    @Excel(name = "0", fixedIndex = 18)
    @TableField("value_0")
    private String value0;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 创建用户
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 更新用户
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 是否可以继续修改基础数据（默认为0）
     */
    @Excel(name = "Modify")
    @TableField("is_modify")
    private String isModify;
    /**
     * 是否有效（Y有效N无效）
     */
    @Excel(name = "Is valid")
    @TableField("is_valid")
    private String isValid;

    @TableField(exist = false)
    private String weightStr;


    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getKpiItemId() {
        return kpiItemId;
    }

    public void setKpiItemId(String kpiItemId) {
        this.kpiItemId = kpiItemId;
    }

    public String getKpiItemName() {
        return kpiItemName;
    }

    public void setKpiItemName(String kpiItemName) {
        this.kpiItemName = kpiItemName;
    }

    public String getKpiDes() {
        return kpiDes;
    }

    public void setKpiDes(String kpiDes) {
        this.kpiDes = kpiDes;
    }

    public String getRuleScope() {
        return ruleScope;
    }

    public void setRuleScope(String ruleScope) {
        this.ruleScope = ruleScope;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getRoleChosen() {
        return roleChosen;
    }

    public void setRoleChosen(String roleChosen) {
        this.roleChosen = roleChosen;
    }

    public String getValue10() {
        return value10;
    }

    public void setValue10(String value10) {
        this.value10 = value10;
    }

    public String getValue9() {
        return value9;
    }

    public void setValue9(String value9) {
        this.value9 = value9;
    }

    public String getValue8() {
        return value8;
    }

    public void setValue8(String value8) {
        this.value8 = value8;
    }

    public String getValue7() {
        return value7;
    }

    public void setValue7(String value7) {
        this.value7 = value7;
    }

    public String getValue6() {
        return value6;
    }

    public void setValue6(String value6) {
        this.value6 = value6;
    }

    public String getValue5() {
        return value5;
    }

    public void setValue5(String value5) {
        this.value5 = value5;
    }

    public String getValue4() {
        return value4;
    }

    public void setValue4(String value4) {
        this.value4 = value4;
    }

    public String getValue3() {
        return value3;
    }

    public void setValue3(String value3) {
        this.value3 = value3;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public String getValue1() {
        return value1;
    }

    public void setValue1(String value1) {
        this.value1 = value1;
    }

    public String getValue0() {
        return value0;
    }

    public void setValue0(String value0) {
        this.value0 = value0;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getIsModify() {
        return isModify;
    }

    public void setIsModify(String isModify) {
        this.isModify = isModify;
    }

    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    public String getWeightStr() {
        return weightStr;
    }

    public void setWeightStr(String weightStr) {
        this.weightStr = weightStr;
    }
}